import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.config.productionTip = false;
import sun from "./components/index";
Vue.use(sun);
//用注册全局的组件

import myMixin from "./utils/mixin/myMixin";
Vue.mixin(myMixin);

import handler from "./components/index2.js";
console.log(handler);
Vue.prototype.$a = handler;
//用prototype把一个函数 挂载为全局方法

import handler2 from "./components/index3.js";
Vue.use(handler2);
//用vue方法注册全局的方法

import loading from "./components/loading";
Vue.use(loading);
//使用全局的loading方法

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
